

import request from '@/utils/request'

const leaveInfoBaseUrl = process.env.VUE_APP_CONTENXT_PATH + "/leave";

export function findLeaveByCondition(query) {
    return request({
        url: leaveInfoBaseUrl + '/listByCondition',
        method: 'get',
        params: query
    })
}


export function submitLeave(data) {
    return request({
        url: leaveInfoBaseUrl + '/submitLeave',
        method: 'post',
        data: data
    })
}

export function submitaddLeave(data) {
    return request({
        url: leaveInfoBaseUrl + '/submitaddLeave',
        method: 'post',
        data: data
    })
}


